<template>
  <div class="myBackground">
    <button @click="send">点我发送后端请求</button>
  </div>

</template>

<script>

export default {
  name: "Home",
  methods: {
    send(){
      this.axios.get('http://localhost:8080/user/hello')
    }
  }
}
</script>

<style scoped>
.myBackground{
  background-image: url(../assets/game18.jpg);
  background-size: cover;
  box-shadow: 0 0 95px 10px #000000 inset; /* 【主要代码】 */
}
</style>
